package com.sg.service.biz.calc.impl;

import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.calc.req.*;
import com.sg.dto.biz.calc.res.*;
import com.sg.dto.integration.component.GenerateDataObjectBatchCodeComReqDto;
import com.sg.dto.integration.component.GenerateDataObjectBatchCodeComRespDto;
import com.sg.entity.OmsStandardDataResult;
import com.sg.service.base.calc.MOmsStandardDataResultService;
import com.sg.service.biz.calc.StandardDataService;
import com.sg.service.biz.calc.TargetCalcService;
import com.sg.common.exception.Assert;
import com.wicket.okrcomponent.integration.InterfaceModeService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class WorkTasksServiceImpl
        implements com.wicket.okrcalc.biz.service.WorkTasksService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOmsStandardDataResultService mOmsStandardDataResultService;
    @Resource
    private NbWorkTasks nbWorkTasks;
    @Resource
    private StandardDataService standardDataService;
    //@Resource
    //private MCustomFields3Service mCustomFields3Service;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private TargetCalcService targetCalcService;

    /**
     * D4-查待汇报工作任务标准数据详情(公共)[8052]
     * gen by moon at 8/13/2024, 6:35:33 PM
     */
    @Trace(operationName = "D4-查待汇报工作任务标准数据详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryToBeReportedWorkTaskStandardDataDetailComRespDto queryToBeReportedWorkTaskStandardDataDetailCom(QueryToBeReportedWorkTaskStandardDataDetailComReqDto reqDto) {


        OmsStandardDataResult omsStandardDataResult_1 = null;
//步骤0: 4-01-01查标准数据详情 - queryStandardDataDetail
        OmsStandardDataResult omsStandardDataResult = null;
        QueryStandardDataDetailReq queryStandardDataDetailReq = new QueryStandardDataDetailReq();
        if (reqDto != null) {
            queryStandardDataDetailReq.setFromContentEntityId(reqDto.getFromContentEntityId());//SimpleFieldAssign//sourceId:1966914_1
            queryStandardDataDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1364845_1
            queryStandardDataDetailReq.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1364859_1
            queryStandardDataDetailReq.setIsNewData(reqDto.getIsNewData());//SimpleFieldAssign//sourceId:1364863_1
            queryStandardDataDetailReq.setDataUsageSceneCode(reqDto.getDataUsageSceneCode());//SimpleFieldAssign//sourceId:1364902_1
            queryStandardDataDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1970220_1
            queryStandardDataDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1364857_1
        }

        /*4-01-01查标准数据详情[2696]   */

        omsStandardDataResult = mOmsStandardDataResultService.queryStandardDataDetail(queryStandardDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsStandardDataResult_1 = omsStandardDataResult;

        QueryToBeReportedWorkTaskStandardDataDetailComRespDto retData = new QueryToBeReportedWorkTaskStandardDataDetailComRespDto();
        if (omsStandardDataResult_1 != null) {
            retData.setDataResultId(omsStandardDataResult_1.getDataResultId());//SimpleFieldAssign//sourceId:1364912_1
            retData.setDataResult(omsStandardDataResult_1.getDataResult());//SimpleFieldAssign//sourceId:1364913_1
            retData.setParentDataResultId(omsStandardDataResult_1.getParentDataResultId());//SimpleFieldAssign//sourceId:1970223_1
            retData.setParentDataResult(omsStandardDataResult_1.getParentDataResult());//SimpleFieldAssign//sourceId:1970224_1
            retData.setUnit(omsStandardDataResult_1.getUnit());//SimpleFieldAssign//sourceId:1970225_1
        }


        return retData;
    }

    /**
     * D4更新工作任务标准数据(公共)[10071]
     * gen by moon at 8/13/2024, 6:35:36 PM
     */
    @Trace(operationName = "D4更新工作任务标准数据(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public RefreshWrokTaskStandardDataComRespDto refreshWrokTaskStandardDataCom(RefreshWrokTaskStandardDataComReqDto reqDto) {


        //virtualUsage D2生成数据对象批次标识(公共)  72150
        GenerateDataObjectBatchCodeComRespDto generateDataObjectBatchCodeComRespDto = null;
        GenerateDataObjectBatchCodeComReqDto generateDataObjectBatchCodeComReqDto = new GenerateDataObjectBatchCodeComReqDto();


        /*D2生成数据对象批次标识(公共)[9404]   */

        generateDataObjectBatchCodeComRespDto = interfaceModeService.generateDataObjectBatchCodeCom(generateDataObjectBatchCodeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//virtualUsage D4-1查标准数据详情（上一条更新的进度数据）  72144
        QueryStandardDataDetailComRespDto queryStandardDataDetailComRespDto = null;
        QueryStandardDataDetailComReqDto queryStandardDataDetailComReqDto = new QueryStandardDataDetailComReqDto();
        queryStandardDataDetailComReqDto.setDataType("PROGRESS_VALUE");//sourceId:1958894_1_72144
        queryStandardDataDetailComReqDto.setDataUsageSceneCode("PMO_DATA_STATISTICS");//sourceId:1958895_1_72144
        queryStandardDataDetailComReqDto.setIsNewData("TRUE");//sourceId:1958896_1_72144
        if (reqDto != null) {
            queryStandardDataDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1958897_1_72144
            queryStandardDataDetailComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1958898_1_72144
        }

        /*D4-1查标准数据详情（上一条更新的进度数据）[2695]   */
        Assert.isNull(queryStandardDataDetailComReqDto.getEntityId(), "D4更新工作任务标准数据(公共)-D4-1查标准数据详情（上一条更新的进度数据）-归属内容表主键ID不能为空", false);
        Assert.isNull(queryStandardDataDetailComReqDto.getDataType(), "D4更新工作任务标准数据(公共)-D4-1查标准数据详情（上一条更新的进度数据）-数据点类型不能为空", false);
        Assert.isNull(queryStandardDataDetailComReqDto.getDataUsageSceneCode(), "D4更新工作任务标准数据(公共)-D4-1查标准数据详情（上一条更新的进度数据）-数据业务场景不能为空", false);
        Assert.isNull(queryStandardDataDetailComReqDto.getIsNewData(), "D4更新工作任务标准数据(公共)-D4-1查标准数据详情（上一条更新的进度数据）-是否归属周期最新数据不能为空", false);
        Assert.isNull(queryStandardDataDetailComReqDto.getThemeContentId(), "D4更新工作任务标准数据(公共)-D4-1查标准数据详情（上一条更新的进度数据）-主题内容ID不能为空", false);
        queryStandardDataDetailComRespDto = standardDataService.queryStandardDataDetailCom(queryStandardDataDetailComReqDto)/*vcase invoke isSameApp*/;


//virtualUsage D4计算归属周期进度值增降量与增降幅(公共)  72151
        CalculateDataPointIncDecMeasureAndAmplitudeComRespDto calculateDataPointIncDecMeasureAndAmplitudeComRespDto = null;
        if (queryStandardDataDetailComRespDto != null) {
            CalculateDataPointIncDecMeasureAndAmplitudeComReqDto calculateDataPointIncDecMeasureAndAmplitudeComReqDto = new CalculateDataPointIncDecMeasureAndAmplitudeComReqDto();
            if (queryStandardDataDetailComRespDto != null) {
                calculateDataPointIncDecMeasureAndAmplitudeComReqDto.setParentDataResult(queryStandardDataDetailComRespDto.getDataResult());//SimpleFieldAssign//sourceId:1970208_1_72151
            }
            if (reqDto != null) {
                calculateDataPointIncDecMeasureAndAmplitudeComReqDto.setDataResult(reqDto.getDataResult());//SimpleFieldAssign//sourceId:1970209_1_72151
            }

            /*D4计算归属周期进度值增降量与增降幅(公共)[8713]   */
            Assert.isNull(calculateDataPointIncDecMeasureAndAmplitudeComReqDto.getDataResult(), "D4更新工作任务标准数据(公共)-D4计算归属周期进度值增降量与增降幅(公共)-数据值结果不能为空", false);
            calculateDataPointIncDecMeasureAndAmplitudeComRespDto = targetCalcService.calculateDataPointIncDecMeasureAndAmplitudeCom(calculateDataPointIncDecMeasureAndAmplitudeComReqDto)/*vcase invoke isSameApp*/;


        }
        if ((reqDto != null && reqDto.getSubjectLifeCycle() != null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
            //if(D4更新工作任务标准数据(公共).主体生命周期 等于 当前有效)  72145

//ModelCode: receptionService
            AddAcceptFieldRespDto receptionServiceRes = null;
            AddAcceptFieldReqDto receptionServiceReq = new AddAcceptFieldReqDto();
            receptionServiceReq.setCustomField("TRUE");//CUSTOM_CONVENTION//sourceId:1970205_1_72149

            /*M4约定字段值：是[6392]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getCustomField(), "D4更新工作任务标准数据(公共)-M4约定字段值：是-自定义字段不能为空", false);
            receptionServiceRes = nbWorkTasks.addAcceptField(receptionServiceReq);


            ImplementUpdateStandardDataComRespDto implementUpdateStandardDataComRespDto = null;
            ImplementUpdateStandardDataComReqDto implementUpdateStandardDataComReqDto = new ImplementUpdateStandardDataComReqDto();
            implementUpdateStandardDataComReqDto.setDataType("PROGRESS_VALUE");//sourceId:1969937_1_72146
            implementUpdateStandardDataComReqDto.setDataUsageSceneCode("PMO_DATA_STATISTICS");//sourceId:1969942_1_72146
            if (reqDto != null) {
                implementUpdateStandardDataComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1969948_1_72146
                implementUpdateStandardDataComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1969940_1_72146
                implementUpdateStandardDataComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1969939_1_72146
                implementUpdateStandardDataComReqDto.setBizRoleObjCode(reqDto.getBizRoleObjCode());//SimpleFieldAssign//sourceId:1969941_1_72146
            }
            if (receptionServiceRes != null) {
                implementUpdateStandardDataComReqDto.setIsNewData(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1969950_1_72146
            }

            /*D4-更新标准数据是否最新标识(公共)[6267]   */
            Assert.isNull(implementUpdateStandardDataComReqDto.getDataType(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-数据点类型不能为空", false);
            Assert.isNull(implementUpdateStandardDataComReqDto.getDataUsageSceneCode(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-数据业务场景不能为空", false);
            Assert.isNull(implementUpdateStandardDataComReqDto.getEntityId(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-归属内容表主键ID不能为空", false);
            implementUpdateStandardDataComRespDto = standardDataService.implementUpdateStandardDataCom(implementUpdateStandardDataComReqDto)/*vcase invoke isSameApp*/;


            ImplementUpdateStandardDataComRespDto implementUpdateStandardDataComRespDto_1 = null;
            ImplementUpdateStandardDataComReqDto implementUpdateStandardDataComReqDto_1 = new ImplementUpdateStandardDataComReqDto();
            implementUpdateStandardDataComReqDto_1.setDataType("PROGRESS_VALUE");//sourceId:1969937_1_72147
            implementUpdateStandardDataComReqDto_1.setDataUsageSceneCode("PMO_DATA_STATISTICS");//sourceId:1969942_1_72147
            if (reqDto != null) {
                implementUpdateStandardDataComReqDto_1.setUpdateCycleTypeCode(reqDto.getUpdateCycleTypeCode());//SimpleFieldAssign//sourceId:1969958_1_72147
                implementUpdateStandardDataComReqDto_1.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1969940_1_72147
                implementUpdateStandardDataComReqDto_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1969939_1_72147
                implementUpdateStandardDataComReqDto_1.setBizRoleObjCode(reqDto.getBizRoleObjCode());//SimpleFieldAssign//sourceId:1969941_1_72147
            }
            if (receptionServiceRes != null) {
                implementUpdateStandardDataComReqDto_1.setIsUpdateCycleNewData(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1969959_1_72147
            }

            /*D4-更新标准数据是否最新标识(公共)[6267]   */
            Assert.isNull(implementUpdateStandardDataComReqDto_1.getDataType(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-数据点类型不能为空", false);
            Assert.isNull(implementUpdateStandardDataComReqDto_1.getDataUsageSceneCode(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-数据业务场景不能为空", false);
            Assert.isNull(implementUpdateStandardDataComReqDto_1.getEntityId(), "D4更新工作任务标准数据(公共)-D4-更新标准数据是否最新标识(公共)-归属内容表主键ID不能为空", false);
            implementUpdateStandardDataComRespDto_1 = standardDataService.implementUpdateStandardDataCom(implementUpdateStandardDataComReqDto_1)/*vcase invoke isSameApp*/;


        }
//virtualUsage D4生成标准数据(公共)  72148
        GenerateStandardDataComRespDto generateStandardDataComRespDto = null;
        if (queryStandardDataDetailComRespDto != null && calculateDataPointIncDecMeasureAndAmplitudeComRespDto != null && generateDataObjectBatchCodeComRespDto != null) {
            GenerateStandardDataComReqDto generateStandardDataComReqDto = new GenerateStandardDataComReqDto();
            generateStandardDataComReqDto.setDataUsageSceneCode("PMO_DATA_STATISTICS");//sourceId:1969889_1_72148
            generateStandardDataComReqDto.setDataType("PROGRESS_VALUE");//sourceId:1969888_1_72148
            generateStandardDataComReqDto.setUnit("%");//sourceId:1969885_1_72148
            generateStandardDataComReqDto.setResultType("MANUAL_INPUT");//sourceId:1969886_1_72148
            generateStandardDataComReqDto.setIsSystemDocking("FALSE");//sourceId:1969887_1_72148
            generateStandardDataComReqDto.setCalcStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1969905_1_72148
            generateStandardDataComReqDto.setFromContentTableTypeCode("OMS_TSPE_CYCLE_STAGE_DATA");//sourceId:1969906_1_72148
            generateStandardDataComReqDto.setTableTypeCode("OMS_TASK");//sourceId:1969908_1_72148
            generateStandardDataComReqDto.setPersonLiableTypeCode("FILL_ROLE");//sourceId:1969918_1_72148
            generateStandardDataComReqDto.setBelongToPersonalIdentityTypeCode("OMS_ORG_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:1969924_1_72148
            if (reqDto != null) {
                generateStandardDataComReqDto.setDataResult(reqDto.getDataResult());//SimpleFieldAssign//sourceId:1969884_1_72148
                generateStandardDataComReqDto.setPeriodId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1969892_1_72148
                generateStandardDataComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1969893_1_72148
                generateStandardDataComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1969894_1_72148
                generateStandardDataComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1969895_1_72148
                generateStandardDataComReqDto.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1969896_1_72148
                generateStandardDataComReqDto.setUpdateCycleId(reqDto.getUpdateCycleId());//SimpleFieldAssign//sourceId:1969897_1_72148
                generateStandardDataComReqDto.setUpdateCycleStartTime(reqDto.getUpdateCycleStartTime());//SimpleFieldAssign//sourceId:1969898_1_72148
                generateStandardDataComReqDto.setUpdateCycleEndTime(reqDto.getUpdateCycleEndTime());//SimpleFieldAssign//sourceId:1969899_1_72148
                generateStandardDataComReqDto.setUpdateCycleTypeCode(reqDto.getUpdateCycleTypeCode());//SimpleFieldAssign//sourceId:1969900_1_72148
                generateStandardDataComReqDto.setFromContentEntityId(reqDto.getFromContentEntityId());//SimpleFieldAssign//sourceId:1969907_1_72148
                generateStandardDataComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1969909_1_72148
                generateStandardDataComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1969912_1_72148
                generateStandardDataComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1969913_1_72148
                generateStandardDataComReqDto.setPersonLiableObjId(reqDto.getPersonLiableObjId());//SimpleFieldAssign//sourceId:1969919_1_72148
                generateStandardDataComReqDto.setBizRoleObjCode(reqDto.getBizRoleObjCode());//SimpleFieldAssign//sourceId:1969921_1_72148
                generateStandardDataComReqDto.setBelongToPersonalIdentityId(reqDto.getBelongToPersonalIdentityId());//SimpleFieldAssign//sourceId:1969923_1_72148
                generateStandardDataComReqDto.setBelongToPersonalIdentityRoleCode(reqDto.getBizRoleObjCode());//SimpleFieldAssign//sourceId:1969934_1_72148
                generateStandardDataComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1969925_1_72148
                generateStandardDataComReqDto.setOperationInductionId(reqDto.getBelongToPersonalIdentityId());//SimpleFieldAssign//sourceId:1969926_1_72148
            }
            if (queryStandardDataDetailComRespDto != null) {
                generateStandardDataComReqDto.setParentDataResultId(queryStandardDataDetailComRespDto.getDataResultId());//SimpleFieldAssign//sourceId:1969891_1_72148
                generateStandardDataComReqDto.setParentDataResult(queryStandardDataDetailComRespDto.getDataResult());//SimpleFieldAssign//sourceId:1969890_1_72148
            }
            if (calculateDataPointIncDecMeasureAndAmplitudeComRespDto != null) {
                generateStandardDataComReqDto.setChangeFromLastValue(calculateDataPointIncDecMeasureAndAmplitudeComRespDto.getChangeFromLastValue());//SimpleFieldAssign//sourceId:1969928_1_72148
                generateStandardDataComReqDto.setChangeFromLastRatio(calculateDataPointIncDecMeasureAndAmplitudeComRespDto.getChangeFromLastRatio());//SimpleFieldAssign//sourceId:1969929_1_72148
            }
            if (generateDataObjectBatchCodeComRespDto != null) {
                generateStandardDataComReqDto.setEventBatchUpdateCode(generateDataObjectBatchCodeComRespDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1969927_1_72148
            }

            /*D4生成标准数据(公共)[8556]   */
            Assert.isNull(generateStandardDataComReqDto.getDataUsageSceneCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据业务场景不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getDataType(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据点类型不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getDataResult(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据值结果不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getUnit(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-冗余单位不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getResultType(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-结果产生类型不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getIsSystemDocking(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-是否系统对接不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getPeriodId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-周期ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getCycleStartTime(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-周期开始时间不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getCycleEndTime(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-周期结束时间不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getCycleTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-周期类型标识不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getUpdateCycleId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-更新周期ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getUpdateCycleStartTime(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-更新周期开始时间不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getUpdateCycleEndTime(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-更新周期结束时间不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getUpdateCycleTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-更新周期类型标识不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getEventBatchUpdateCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-事务内数据更新批次标识不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getCalcStartTime(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-计算开始时间不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getFromContentTableTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-来自内容表类型编码不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getFromContentEntityId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-来自内容表主键ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getTableTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-归属内容表类型编码不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getEntityId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-归属内容表主键ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getPersonLiableTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-填报评价责任人身份类型编码不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getPersonLiableObjId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-填报评价责任人对象ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getBizRoleObjCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-填报评价责任人业务角色标识不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getBelongToPersonalIdentityId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据归属对象ID不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getBelongToPersonalIdentityRoleCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据归属对象角色编码不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getBelongToPersonalIdentityTypeCode(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-数据归属对象类型编码不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getSubjectLifeCycle(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-主体生命周期不能为空", false);
            Assert.isNull(generateStandardDataComReqDto.getOperationInductionId(), "D4更新工作任务标准数据(公共)-D4生成标准数据(公共)-操作人就职记录ID不能为空", false);
            generateStandardDataComRespDto = standardDataService.generateStandardDataCom(generateStandardDataComReqDto)/*vcase invoke isSameApp*/;


        }

        RefreshWrokTaskStandardDataComRespDto retData = new RefreshWrokTaskStandardDataComRespDto();


        return retData;
    }
    //
}
